package com.starlight.flower_server.infrastructure.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.starlight.flower_server.domain.order.cqrs.OrderPageQuery;
import com.starlight.flower_server.infrastructure.entity.Order;

import java.util.List;

/**
 * @Author yfy2001
 * @date 2023/4/18 8:07
 */
public interface OrderRepository {
    Order queryDetail(Long id);

    Integer logicDelete(Long id);

    Integer insert(Order order);

    Integer modify(Order order);

    boolean exists(Order order);

    IPage<Order> queryPage(OrderPageQuery query);

    List<Order> queryListByFlowerUserId(Long flowerUserId);

    List<Order> queryListByIdList(List<Long> orderIdList);

    List<Order> queryUnaccomplishedListByFlowerUserId(Long flowerUserId);

    List<Order> queryAll();

    Long queryTotalCount();
}
